package com.mfin.bom.adapter;

import com.mfin.bom.interfaces.IDocCharge;
import com.mfin.bom.interfaces.IFinance;
import com.mfin.bom.interfaces.ILoanMaster;
import com.mfin.bom.interfaces.ILoanPreference;
import com.mfin.bom.objects.DocCharge;

public class DocChargeAdapter extends IIdentifiableAdapter implements
		IDocCharge {

	DocCharge wrapDocCharge = null;

	public DocChargeAdapter(DocCharge wrapDocCharge) {
		super();
		this.wrapDocCharge = wrapDocCharge;
	}

	public DocCharge getDocCharge() {
		return wrapDocCharge;
	}

	@Override
	public Double getRangeMin() {
		return wrapDocCharge.getRangeMin();
	}

	@Override
	public void setRangeMin(Double rangeMin) {
		wrapDocCharge.setRangeMin(rangeMin);
	}

	@Override
	public Double getRangeMax() {
		return wrapDocCharge.getRangeMax();
	}

	@Override
	public void setRangeMax(Double rangeMax) {
		wrapDocCharge.setRangeMax(rangeMax);
	}

	@Override
	public Double getCharges() {
		return wrapDocCharge.getCharges();
	}

	@Override
	public void setCharges(Double charges) {
		wrapDocCharge.setCharges(charges);
	}
	
	@Override
	public void setLoanPreference(ILoanPreference bomLoanPreference) {
		wrapDocCharge.setLoanPreference(((LoanPreferenceAdapter)bomLoanPreference).getLoanPreference());
	}

}
